package com.cdgeekcamp.redas.db.model;

import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

public interface UserOpenRepository extends CrudRepository<UserOpen, Integer> {
    Optional<UserOpen> findByOpenId(String openId);
    Optional<UserOpen> findByUserId(Integer userId);
}
